package com.zp.self.springboot.三种配置获取;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author By ZengPeng
 * @Description
 * @date in  2021/4/1 23:55
 * @Modified By
 */
@RestController
public class TestController {
    @Resource
    ConfigurationPropertiesTest configurationPropertiesTest;
    @GetMapping("/ConfigurationProperties/config")
    public Object getConfig() {
        return configurationPropertiesTest;
    }
}
